package com.jiumi.order.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiumi.common.annotation.Excel;
import com.jiumi.common.core.domain.BaseEntity;
import lombok.Data;
/**
 * 收款管理对象 base_order_pay_info
 *
 * @author jiumi
 * @date 2023-06-02
 */
@Data
@TableName("base_order_pay_info")
public class BaseOrderPayInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 主订单号 */
    @Excel(name = "主订单号")
    private String orderNumber;

    /** 商户订单号 */
    @Excel(name = "商户订单号")
    private String payOrderNumber;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String payType;

    /** 收款方式 */
    @Excel(name = "收款方式")
    private String payment;

    /** 学员ID */
    @Excel(name = "学员ID")
    private Long userId;

    /** 学员账号 */
    @Excel(name = "学员账号")
    private String userName;

    /** 学员手机号 */
    @Excel(name = "学员手机号")
    private String userPhone;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderAmount;

    /** 订单实际金额 */
    @Excel(name = "订单实际金额")
    private BigDecimal realAmount;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private BigDecimal payAmount;

    /** 收款状态 */
    @Excel(name = "收款状态")
    private String paymentStatus;

    private String orderDetailId;

    @TableField(exist = false)
    private String orderDetailInfo;
    @TableField(exist = false)
    private String authName;
    private String payInfo;
}
